package com.ruoyi.framework.aspectj.commonservice;

import ch.qos.logback.classic.pattern.ClassicConverter;
import ch.qos.logback.classic.spi.ILoggingEvent;
import com.ruoyi.framework.web.domain.server.Sys;

/**
 * @author: silver
 * created:11/21/22
 * description
 */
public class TraceIdLogConverter extends ClassicConverter {
    public TraceIdLogConverter() {
    }

    public String convert(final ILoggingEvent event) {
        String traceId = TraceIdContext.get();
        return traceId;
    }
}
